/**
 * ShopReactNative
 *
 * @author Tony Wong
 * @date 2016-08-13
 * @email 908601756@qq.com
 * @copyright Copyright © 2016 EleTeam
 * @license The MIT License (MIT)
 */

import React, { Component } from 'react';
import {
    // Navigator,
    View,Text,
    StatusBar,
    Platform
} from 'react-native';
import {
    Navigator
} from 'react-native-deprecated-custom-components';

import StartContainer from './containers/StartContainer';

// import CertifyContainer from './containers/CertifyContainer';


class App extends Component {
    render() {
        let initRoote={name: 'StartContainer', component: StartContainer};
        return (
            <View style={{flex: 1}}>
                <StatusBar
                    barStyle='light-content'
                    backgroundColor='transparent'
                    translucent={true}
                />
                <Navigator
                    initialRoute={initRoote}
                    configureScene={()=>{
                        return  Navigator.SceneConfigs.PushFromRight;
                    }}
                    renderScene={(route, navigator) => {
                        let Component = route.component;
                        return (
                            <Component navigator = {navigator} route = {route} {...route.passProps} />
                        )
                    }}
                />
                
            </View>
        )
    }
    // render(){
    //     return (<View><Text>render-app</Text><Text>render-app</Text><Text>render-app</Text><Text>render-app</Text><Text>render-app</Text><Text>render-app</Text><Text>render-app</Text><Text>render-app</Text></View>)
    // }
}

export default App;